package com.lhkj.ct.meta.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lhkj.ct.meta.admin.model.entity.TblUserRole;

import java.util.List;

/**
 * <p>
 * 用户和角色关联表 服务类
 * </p>
 *
 * @author jobob
 * @since 2023-09-04
 */
public interface UserRoleService extends IService<TblUserRole> {

    /**
     * 保存用户角色
     *
     * @param userId
     * @param roleIds
     * @return
     */
    boolean saveUserRoles(String userId, List<String> roleIds);

    List<String> selectRoleIdsByUser(String userId);
}
